body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    /* width: 100vw; */
}



.game-container {
    width: 375px;
    /* height: 100%; */
    border: 2px solid #000;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

.game-header, .game-footer {
    display: flex;
    /* flex:1; */
    justify-content: space-between;
    padding: 10px;
    background-color: #8d8d8d;
}

.pause-button {
    font-size: 24px;
    cursor: pointer;
}


.game-body {
    position: relative;
    height: 410px;
}


.pot {
    position: absolute;
     /* position: relative; 使其为相对定位，让子元素可以相对它定位 */
    /* top: 10%; */
    width: 100%;
    height: 55vh;
    /* flex:1; */
    display: flex;
    justify-content: center;
    overflow: hidden; /* 隐藏超出容器范围的内容 */
}

/* 设置整个盒子占据剩余空间 */
.basket {  
    /* background-color: #8d8d8d; */
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    padding: 10px;
    background-color: rgba(97, 93, 93,0.3);
    align-items: center;
    flex: 1; 
    /* height: 100%; */
    border-radius: 20%;  
    /* width: 100%;  */

}


.items {
    position: absolute;
    /* top: 40%; */
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.item {
    /* width: 40px; */
    height: auto;
    margin: 5px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    cursor: pointer;
}

.button {
    background-color: #eecc3f;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin: 5px;
    flex: 1;
}

.button + .button {
    margin-left: 10px;
}



.slot-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 95%;
    max-width: 600px;
    padding: 10px;
    background-color: #cccccc; /* 容器背景色 */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.slot {
    width: 15%;
    height: 60px;
    background-color: #dcdcdc; /* 槽的背景色 */
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.color1 { background-color: rgb(229, 56, 56); }
.color2 { background-color: rgb(28, 225, 28); }
.color3 { background-color: rgb(77, 77, 185); }

/* }  */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 990;
  }

  .ad {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 1000;
  }

  .close-ad {
    cursor: pointer;
    color: red;
  }


  /* 定义发光变大的动画效果 */
@keyframes glowAndGrow {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 1);
        transform: scale(1.2);
    }
}

/* 应用动画效果的类 */
.glow-and-grow {
    animation: glowAndGrow 1s ease-out;
}

/* 进去下一关 */
#next-level {
    position: absolute;
    top:0;
    left:0;
    bottom:0;
    right:0;
    margin: auto;
    height: 100px;
    width: 70%;
    /* height: auto; */
    background-color: rgba(8, 8, 8, 0.6);
    line-height: 100px;
    text-align: center;
    color: white;
    /* font-size: 30px; */
    /* font-weight: bold; */
    border-radius: 10px;
    z-index: 1000;
    display: none;

}


